<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"  %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no, email=no">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="full-screen" content="yes">
    <meta name="browsermode" content="application">
    <meta name="screen-orientation" content="portrait">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>dld</title>
    <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
    <style>
    html {
        height: 100%;
    }
    
    body {
        height: 100%;
        background: linear-gradient(rgb(204, 255, 153), rgb(204, 255, 255));
        overflow-x: hidden;
        font-family: SimSun;
        color: rgba(255, 255, 255, 0.8);
    }
    
    /*暗影*/
    
    .box-shadow {
        box-shadow: 0 0 10px 2px rgba(0, 0, 0, 1);
    }

    /*输入表格*/
    input:not(:focus).record-input {
        opacity: 0.4;
    }
    input:focus.record-input{
        -webkit-transform: scale(1.02);
        -moz-transform: scale(1.02);
        transform: scale(1.02);
        opacity: 0.4;
    }
    .control-label {
        padding: 6px 0 0 13px; 
    }
    .col-sm-11.col-xs-10 {
        padding-left: 0 !important;
    }
    .form-control {
        background: #fff;
        color: rgb(0, 0, 0);
        border: 0;
    }
    .list-group-item {
        background: rgba(84, 84, 84, .85);
        padding: 5px;
        color: #000;
        border: 1px solid rgba(255, 255, 255, .15);
    }
    label {
        color: rgba(255, 255, 255, 0.8);
    }
    .ctrl-tab{
    	background-color: rgb(84,84,84);
    	color:rgba(255,255,255,0.8);
    	border: 1px solid rgba(255, 255, 255, .15);
    	border-radius: 0;
    }
    </style>
</head>

<body>
    <nav class="navbar navbar-top box-shadow" style="background-color: rgb(51, 51, 51);margin-bottom: 0;">
        <div class="col-xs-3" onclick="window.location.href='usersAction'">
            <span class="glyphicon glyphicon glyphicon-user pull-left" style="font-size: 18px;margin-top: 13px;"></span>
        </div>
        <div class="col-xs-6" align="center">
            <p style=";font-size: 27px;margin: 5px 0 0 0;">dld</p>
        </div>
        <div class="col-xs-3">
            <span class="glyphicon glyphicon-search pull-right" style="font-size: 18px;margin-top: 13px;"></span>
        </div>
    </nav>
   	<div class="col-xs-12" style="padding:0;margin-bottom:34px;">
    <s:iterator value="pageBean.getList()" status="st" var="list">
        <div class="col-xs-12 btn-lg ctrl-tab">
			内容:<s:property value="#list.getContent()"/><br>
			时间:<s:property value="#list.getCreated_at()"/>
        </div>
    </s:iterator>
  	</div>
  	
  	<div style="color:rgb(84,84,84);" class="text-center">
		<s:if test="%{pageBean.currentPage == 1}">
		<div class="btn btn-default" disabled="disabled">第一页</div><div class="btn btn-default" disabled="disabled">上一页</div>
		</s:if>
		<s:else>
			<a href="adminUsersMngAction?page=1" class="btn btn-info">第一页</a>
			<a href="adminUsersMngAction?page=<s:property value="%{pageBean.currentPage-1}"/>" class="btn btn-info">上一页</a>
		</s:else>
		<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
			<a href="adminUsersMngAction?page=<s:property value="%{pageBean.currentPage+1}"/>" class="btn btn-info">下一页</a>
			<a href="adminUsersMngAction?page=<s:property value="pageBean.totalPage"/>" class="btn btn-info">最后一页</a>
		</s:if>
		<s:else>
			<div class="btn btn-default" disabled="disabled">下一页</div> <div class="btn btn-default" disabled="disabled">最后一页</div>
		</s:else>
		 共<s:property value="pageBean.allRow"/> 条记录
		共<s:property value="pageBean.totalPage"/> 页
		 当前第<s:property value="pageBean.currentPage"/>页
	</div>
    
    <script src="http://cdn.bootcss.com/zepto/1.1.6/zepto.min.js"></script>
</body>

</html>
